path_exists

Returns whether a path with the given index exists or not.

语法:

path_exists(index);


参数 描述
index The index of the path to check for.


返回: Boolean(布尔值)


描述

This function returns whether a path with the given index exists or not. Note that if you check for the existence of a path through a variable that has yet to have been declared, this will throw an error.


例如:

if path_exists(path0)
   {
   path_start(path0, 4, path_action_reverse, 0);
   }

This will start path0, if it exists.


上一页: Path Information
下一页: path_get_closed
© Copyright YoYo Games Ltd. 2018 All Rights Reserved